package com.xht.exception;

import com.xht.enums.AppHttpCodeEnum;
import lombok.Getter;

@Getter
public class SystemExceptin extends RuntimeException {

    private final int code;
    private final String msg;

    public SystemExceptin(AppHttpCodeEnum appHttpCodeEnum) {
        super(appHttpCodeEnum.getMsg());
        this.code = appHttpCodeEnum.getCode();
        this.msg = appHttpCodeEnum.getMsg();
    }

}
